import {DataSource} from 'typeorm'
import {User} from './entity/User'
export const AppDataSource = new DataSource({
    type:'mysql',
    host: '47.119.133.230',
    port: 3306,
    username: 'root',
    password: 'example',
    database: 'orm',
    synchronize: true, // 是否自动同步实体和数据库表结构，开发时true,上线后false
    logging: true, // 是否启用日志
    entities: [User]
})